import constant from '@/utils/constant'
import request from '@/utils/request'

/**
 * 获取问题类型
 */
export function getListIssueType(data) {
	uni.showLoading({
		title: '加载中',
		mask: true,
	})
	return request({
		url: constant.listIssueType,
		method: 'GET',
		data
	})
}

/**
 * 提交问题反馈
 */
export function saveIssueDetails(data) {
	uni.showLoading({
		title: '加载中',
		mask: true,
	})
	return request({
		url: constant.saveIssueDetails,
		method: 'POST',
		data
	})
}


/**
 * 问题反馈列表
 */
export function listDetailsByUserId(data) {
	uni.showLoading({
		title: '加载中',
		mask: true,
	})
	return request({
		url: constant.listDetailsByUserId,
		method: 'GET',
		data
	})
}